package practicedemo58;

public class Teacher extends Person{
    private String id;

    public Teacher() {
    }

    public Teacher(String id) {
        this.id = id;
    }

    public void teach(){
        System.out.println("我在教书");
    }

    /**
     * 获取
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    public String toString() {
        return "Teacher{id = " + id + "}";
    }
}
